<svg xmlns="http://www.w3.org/2000/svg" xmlns:html="http://www.w3.org/1999/xhtml" onload="setTimeout(foo, 30);" class="reftest-wait">

<script>

var SVG_NS = "http://www.w3.org/2000/svg";

function foo()
{
  var rect = document.createElementNS(SVG_NS, 'rect'); 
  rect.setAttribute('opacity', ".3"); 
  document.documentElement.appendChild(rect);
  document.documentElement.removeAttribute("class");
}

</script>


</svg>